package com.shop.shoporder.service;


import com.shop.shoporder.entity.GoodSpec;
import com.shop.shoporder.entity.GoodsDetailsSpce;

import com.shop.shoporder.entity.GroupbuyGoodDetail;
import com.shop.shoporder.entity.WapGoodsSpec;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

public interface WapGoodsDetailsService {

    //根据商品ID查询商品的详情
    WapGoodsSpec selectGoodsDetailsByGoodId(Map<String,String> map)throws Exception;

    /**
     * 根据商品ID查询商品的规格
     * @param map
     * @return
     */
    List<GoodsDetailsSpce> selectDetailsSpecListByGoodsId(Map<String,String> map);

    //获取商品和指定的规格商品详情
    GoodSpec getGoodSpecDetail(@Param("Id") int goodsId, @Param("specId") int specId);

    //获取团购商品的详情
    GroupbuyGoodDetail getGroupbuyGoodDetail(@Param("Id") int goodsId);
}
